package com.googlecode.jtoy.mvc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.googlecode.jtoy.mvc.domain.User;
import com.googlecode.jtoy.mvc.persistence.UserMapper;
import com.googlecode.jtoy.mvc.service.LoginService;

/**
 * @author shangxj
 * @date 10:22:25 PM, Jul 28, 2011
 */
@Service("loginService")
public class LoginServiceImpl implements LoginService {

	@Autowired
	private UserMapper userMapper;

	@Override
	public List<User> listAllUsers() {
		return userMapper.findAll();
	}

}
